﻿using System.Data.Entity;
using System.Reflection;
using Abp.EntityFramework;
using Abp.Modules;
using GN.Pay.Core;

namespace GN.Pay.EntityFramework
{
    [DependsOn(typeof(AbpEntityFrameworkModule), typeof(CoreModule), typeof(GN.EntityFramework.Modules.EntityFrameworkModule))]
    public class DataModule : AbpModule
    {
        public override void PreInitialize()
        {
            Configuration.DefaultNameOrConnectionString = "GNPay";
        }
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
            Database.SetInitializer<PayDbContext>(null);
        }
    }
}
